package com.schoolET.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author: lin
 * @className: AddGoodsVO
 * @createTime: 2024-06-06  11:25
 * @description: 发布商品VO
 */
@Data
@ApiModel(value = "AddGoodsVO对象", description = "发布商品")
public class AddGoodsVO {

    @ApiModelProperty("图片")
    private String fileImgUrl;

    @ApiModelProperty("主题")
    @NotBlank
    private String theme;

    @ApiModelProperty("描述")
    @NotBlank
    private String describe;

    @ApiModelProperty("价格")
    @NotNull
    @Min(value = 100, message = "价格不能小于100")
    private Long price;

    @ApiModelProperty("类型Id")
    @NotNull
    private Integer typeId;

    @ApiModelProperty("地址")
    @NotBlank
    private String address;

}
